﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
namespace GenerateDiagram
{
    public class Config
    {
        private static string GetConfigString(string key)
        {
            try
            {
                return ConfigurationManager.ConnectionStrings[key].ConnectionString;
            }
            catch 
            {
                return "";               
            }
        }


        public static string GetConnectionString(string databaseName)
        {
            return string.Format(GetConfigString("StrConnectionString"),databaseName);
        }

    }
}
